﻿namespace housingsafety.server.Models
{
    /// <summary>
    /// APP更新信息
    /// </summary>
    public class AppUpdateInfoDto
    {

        /// <summary>
        /// 构造
        /// </summary>
        public AppUpdateInfoDto() : this(AppUpdateStatus.Available)
        {

        }

        /// <summary>
        /// 构造
        /// </summary>
        /// <param name="info">信息</param>
        public AppUpdateInfoDto(AppUpdateInfo info) : this(AppUpdateStatus.Available)
        {
            Info = info;
        }

        /// <summary>
        /// 构造
        /// </summary>
        /// <param name="status">状态</param>
        public AppUpdateInfoDto(AppUpdateStatus status)
        {
            Status = status;
        }

        /// <summary>
        /// 状态
        /// </summary>
        public AppUpdateStatus Status { get; set; }
        /// <summary>
        /// app信息
        /// </summary>
        public AppUpdateInfo Info { get; set; }

        /// <summary>
        /// app下载路径
        /// </summary>
        public string AppUrl { get; set; }
    }
}